package com.handler.inbound;

import com.to.FileReq;
import com.to.MetaInfo;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class SkipOffsetUploader extends SimpleChannelInboundHandler<FileReq> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, FileReq msg) throws Exception {
        MetaInfo metaInfo = msg.getMetaInfo();

        metaInfo.setAppendFile(true);

        ctx.writeAndFlush(msg.getMetaInfo());

    }
}
